@mixin flex_center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  padding: 5px;
  height: 90%;
  display: flex;
  // flex-wrap: wrap;
  flex-direction: column;
}
.row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.rowreverse {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.box {
  width: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1px 0;
  position: relative;
  img {
    $img_size: 40px;
    // width: $img_size;
    // height: $img_size;
    width: 45%;
  }
  .pointer {
    position: absolute;
    $size: 35px;
    width: $size;
    height: $size;
    bottom: 0;
    right: 0;
  }
  .title {
    margin: 3px 0;
    height: 20px;
    font-size: 12px;
    columns: #666;
    font-weight: bold;
    color: #dcdfe6;
    @include flex_center;
  }
}

.active {
  border-radius: 2px;
  box-shadow: 0 0 4px #c0c4cc;
  // 变大
  transform: scale(1.5);
}

.shake {
  animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%,
  90% {
    transform: scale(1.5) translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: scale(1.5) translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: scale(1.5) translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: scale(1.5) translate3d(4px, 0, 0);
  }
}
